package com.project.client.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class UpdateUserPassVo {
    @NotNull(message = "无效操作")
    private Long id;

    @Pattern(regexp = "^[0-9A-Za-z]{6,20}$", message = "密码位6-20位数字或字母")
    @NotBlank(message = "密码有误")
    private String password;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
